<!--
 * @Author: Jackie
 * @Date: 2020-11-28 21:03:40
 * @LastEditors: Jackie
 * @LastEditTime: 2020-11-29 13:39:17
 * @Description: 主页组件
 * @FilePath: \vue\vue_shop\src\components\Home.vue
-->
<template>
  <div>
      <el-button type="info" @click="loginOut">退出</el-button>
  </div>
</template>

<script>
export default {
  methods:{
    loginOut(){
      window.sessionStorage.clear();
      this.$router.push("/login")
    }
}
}
</script>

<style lang="less" scoped>
</style>
